var model = {};
var lang = {};
var view = {};
var template = {};
var viewer, user_uid;
var owner;
var friends;
var friendsIds = new Array();
var friendlist = new Array();
var currentView = gadgets.views.getCurrentView().getName();

var config = {};

	config.backend_url = PRODUCTION_MODE ? "http://wunschkiste.appspot.com/" : "http://localhost:8082/"
	config.api_host = config.backend_url + 'api/';

	config.wishes_per_list = 5;
	config.friends_per_frame = 5;
	config.cache_path = gadgets.cache.getCachedPath();
	config.images_path = config.cache_path + 'images/';
	
	config.default_image = config.images_path + 'box2.png';
	
	config.reasons = [{"id" : 1, "name" : "Einfach so"}, {"id" : 2, "name" : "Geburtstag"}, {"id" : 3, "name" : "Weihnachten"}, 
	                  {"id" : 4, "name" : "Hochzeit"}, {"id" : 5, "name" : "Jahrestag"}, {"id" : 6, "name" : "Muttertag"}, {"id" : 7, "name" : "Vatertag"}, 
	                  {"id" : 8, "name" : "Baby"}, {"id" : 9, "name" : "Valentingstag"}, {"id" : 10, "name" : "Wohnungseinweihung"}, {"id" : 11, "name" : "Schulabschluß"}];
	
	config.categories = [
	                     {"id" : 0, "name" : "Sonstiges"},
	                     {"id" : 1, "name" : "Bücher & Wissen"}, 
	                     {"id" : 2, "name" : "Elektronik & Computer"}, 
	                     {"id" : 3, "name" : "Essen & Trinken"}, 
	                     {"id" : 4, "name" : "Haustiere"}, 
	                     {"id" : 5, "name" : "Liebe & Freundschaft"}, 
	                     {"id" : 6, "name" : "Mode & Lifestyle"},
	                     {"id" : 7, "name" : "Reise & Erlebnis"}, 
	                     {"id" : 8, "name" : "Tickets & Events"},
	                     {"id" : 9, "name" : "Schmuck & Accessoirs"},
	                     {"id" : 10, "name" : "Wohnen & Deko"}
	                     ];